﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN01_1S.aspx.cs" Inherits="IFRS_WIN01_1S" %>

<%@ Register Assembly="vsm.WebControls" Namespace="vsm.WebControls" TagPrefix="vsm" %>
<%--<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsMenu,ConditionSearch%>" />
                </legend>
                <div class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblDataType" runat="server" Text="<%$Resources:ifrsField,DATA_TYPE%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlDataType" runat="server" SkinID="SS_DropDownListWithNoColor" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblAccountNo" runat="server" Text="<%$Resources:ifrsField,NO_ACCOUNT%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtAccountNo" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblCostCenter" runat="server" Text="<%$Resources:ifrsField,COST_CENTER%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtCostCenter" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblStatus" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlStatus" runat="server" SkinID="DropDownListWithNoColor" />
                        </div>
                    </div>
                </div>
                <div class="colbtn">
                    <asp:Button ID="btnSEARCH" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>" OnClick="btnSEARCH_Click" />&nbsp;
                    <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>" OnClick="btnCLEAR_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>" OnClick="btnCANCEL_Click" />&nbsp;
                </div>
            </fieldset>
            <div class="colbtnAdd">
                <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,ADD%>" OnClick="btnAdd_Click" />
            </div>
            <%-- <div>
                <asp:Label ID="lblManuGridView" runat="server" Text="<%$Resources:ifrsMenu,WIN01_LIST%>" />
            </div>--%>
            <div class="content_grid">
                <asp:GridView ID="gvSearch" runat="server" AllowSorting="true" CssClass="CSSTableGenerator" AutoGenerateColumns="false"
                    AllowPaging="true" PageSize="10" OnRowDataBound="gvSearch_RowDataBound" OnSorting="gvSearch_Sorting">
                    <Columns>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <asp:Label ID="lblgvSEQ" runat="server" Text="<%$Resources:ifrsField,CENTER_SEQ%>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblRowNumber" runat="server" Text='<%# Eval("RowNumber","{0:N0}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="IslamicDepositID" Visible="false" />
                        <asp:TemplateField SortExpression="TransactionDate" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,DATE_TRANSACTION%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvTransactionDate" runat="server" Text='<%# Eval("TransactionDate", "{0:dd/MM/yyyy}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="AccountNo" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,NO_ACCOUNT%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvAccountNo" runat="server" Text='<%# Eval("AccountNo") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="DataTypeName" ItemStyle-HorizontalAlign="Left"
                            HeaderText="<%$Resources:ifrsField,DATA_TYPE%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvDataTypeName" runat="server" Text='<%# Eval("DataTypeName") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="CurrencyCode" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,CURRENCYCODE%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvCurrencyCode" runat="server" Text='<%# Eval("CurrencyCode") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="GLAccountCode" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,GL_ACCOUNT%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvGLAccountCode" runat="server" Text='<%# Eval("GLAccountCode") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="CostCenter" ItemStyle-HorizontalAlign="Left"
                            HeaderText="<%$Resources:ifrsField,COST_CENTER%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvCostCenter" runat="server" Text='<%# Eval("CostCenter") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="DepositAmount" ItemStyle-HorizontalAlign="Right"
                            HeaderText="<%$Resources:ifrsField,AMOUNT_DIVIDENDS%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvDepositAmount" runat="server" Text='<%# Eval("DepositAmount","{0:N2}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="IsConfirmed" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,LIST_STATUS%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvIsConfirmed" runat="server" Text='<%# Eval("ConfirmedStatus") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Copy%>" runat="server"
                                    OnClick="lnkCopyItems_Click">
                                    <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Copy%>" ToolTip="<%$Resources:ifrsMenu,Copy%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Securable%>"
                                    runat="server" OnClick="lnkEditItems_Click">
                                    <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>" ToolTip="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                    OnClick="lnkDeleteItems_Click">
                                    <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>" ToolTip="<%$Resources:ifrsMenu,Delete%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                    OnClick="lnkViewItems_Click">
                                    <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>" ToolTip="<%$Resources:ifrsMenu,View%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="content_paging">
                <asp:Repeater ID="repPager" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="hidCostCenter" runat="server" />
</asp:Content>